package com.alnex.mongo.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * Document 可理解为关联对应的表
 *
 * @author admin
 */
@Data
@Document(collection = "weckLog")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private String _id;

    /**
     * 名称
     */
    private String name;
    /**
     * 年龄
     */
    private String age;
    /**
     * 职业
     */
    private String occupation;
}